projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22d5850
)
tegra: Use SD write-protect GPIO on Tamonten
author
Thierry Reding
<
[email protected]
>
Mon, 4 Jun 2012 20:02:29 +0000
(20:02 +0000)
committer
Albert ARIBAUD (U-Boot)
<uboot@lilith.(none)>
Mon, 9 Jul 2012 20:44:32 +0000
(22:44 +0200)
GPIO PI6 can be used to obtain the write-protect status of an SD card
inserted into the SD slot.
Signed-off-by: Thierry Reding <
[email protected]
>
Acked-by: Stephen Warren <
[email protected]
>
Signed-off-by: Tom Warren <
[email protected]
>
board/avionic-design/common/tamonten.c
patch
|
blob
|
history
diff --git
a/board/avionic-design/common/tamonten.c
b/board/avionic-design/common/tamonten.c
index 915247c760c69f14c523ac782221f3430c55f02f..610f188d1e519656472ade9bbc53ad5c49fe1fbb 100644
(file)
--- a/
board/avionic-design/common/tamonten.c
+++ b/
board/avionic-design/common/tamonten.c
@@
-65,6
+65,8
@@
void gpio_early_init(void)
static void pin_mux_mmc(void)
{
funcmux_select(PERIPH_ID_SDMMC4, FUNCMUX_SDMMC4_ATB_GMA_GME_8_BIT);
+ /* for write-protect GPIO PI6 */
+ pinmux_tristate_disable(PINGRP_ATA);
/* for CD GPIO PH2 */
pinmux_tristate_disable(PINGRP_ATD);
}
@@
-76,7
+78,7
@@
int board_mmc_init(bd_t *bd)
pin_mux_mmc();
/* init dev 0, SD slot, with 4-bit bus */
- tegra2_mmc_init(0, 4,
-1
, GPIO_PH2);
+ tegra2_mmc_init(0, 4,
GPIO_PI6
, GPIO_PH2);
return 0;
}